Then /^open each email and add tag "([^\"]*)"$/ do |tag_value|
  $browser.li(:xpath,"/html/body/div[@id='page-bg']/div[@id='page']/div[@id='sidebar']/div[@id='sidebar_content']/div[@id='sidebar_wrapper']/div[@id='sidebar_folder_tab_content']/ul/li[@id='fld_listall']/a").click
  sleep(5)
  tagger = AddTag.new
  tagger.execute_method("add_tag", tag_value)
end

Then /^verify tag "([^\"]*)" was added to each email$/ do |tag_value|
  $browser.li(:xpath,"/html/body/div[@id='page-bg']/div[@id='page']/div[@id='sidebar']/div[@id='sidebar_content']/div[@id='sidebar_wrapper']/div[@id='sidebar_folder_tab_content']/ul/li[@id='fld_listall']/a").click
  sleep(5)
  tagger = AddTag.new
  tagger.execute_method("verify_tag", tag_value)
end

Then /^delete tag "([^\"]*)" in each email$/ do |tag_value|
  $browser.li(:xpath,"/html/body/div[@id='page-bg']/div[@id='page']/div[@id='sidebar']/div[@id='sidebar_content']/div[@id='sidebar_wrapper']/div[@id='sidebar_folder_tab_content']/ul/li[@id='fld_listall']/a").click
  sleep(5)
  tagger = AddTag.new
  tagger.execute_method("delete_tag", tag_value)
end